<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./index.js"></script>
</head>

<body>
    <script>
        let arr = [1, 2, 3, 4, 5, 6, 7, null, undefined, 0, false, '']
            // _.chunk(arr,[size=1]) 返回新数组  成为二维数组
        console.log(_.chunk(arr, 6));
        console.log(_.compact(arr));
        console.log(_.concta(arr, [1], 2, 3, 4, [
            [2]
        ]));
        console.log(_.difference(arr, [1, 0, 4]));
        console.log(_.drop(arr, 0));
        console.log(_.dropRight(arr, 1));
    </script>
</body>

</html>